3.4.65 \(\int \text {sech}^3(e+f x) (a+b \sinh ^2(e+f x))^{3/2} \, dx\) [365]

Optimal. Leaf size=133 \[ \frac {\sqrt {a-b} (a+2 b) \text {ArcTan}\left (\frac {\sqrt {a-b} \sinh (e+f x)}{\sqrt {a+b \sinh ^2(e+f x)}}\right )}{2 f}+\frac {b^{3/2} \tanh ^{-1}\left (\frac {\sqrt {b} \sinh (e+f x)}{\sqrt {a+b \sinh ^2(e+f x)}}\right )}{f}+\frac {(a-b) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{2 f} \]

[Out]

b^(3/2)*arctanh(sinh(f*x+e)*b^(1/2)/(a+b*sinh(f*x+e)^2)^(1/2))/f+1/2*(a+2*b)*arctan(sinh(f*x+e)*(a-b)^(1/2)/(a
+b*sinh(f*x+e)^2)^(1/2))*(a-b)^(1/2)/f+1/2*(a-b)*sech(f*x+e)*(a+b*sinh(f*x+e)^2)^(1/2)*tanh(f*x+e)/f

________________________________________________________________________________________

Rubi [A]
time = 0.10, antiderivative size = 133, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {3269, 424, 537, 223, 212, 385, 209} \begin {gather*} \frac {\sqrt {a-b} (a+2 b) \text {ArcTan}\left (\frac {\sqrt {a-b} \sinh (e+f x)}{\sqrt {a+b \sinh ^2(e+f x)}}\right )}{2 f}+\frac {b^{3/2} \tanh ^{-1}\left (\frac {\sqrt {b} \sinh (e+f x)}{\sqrt {a+b \sinh ^2(e+f x)}}\right )}{f}+\frac {(a-b) \tanh (e+f x) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{2 f} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sech[e + f*x]^3*(a + b*Sinh[e + f*x]^2)^(3/2),x]

[Out]

(Sqrt[a - b]*(a + 2*b)*ArcTan[(Sqrt[a - b]*Sinh[e + f*x])/Sqrt[a + b*Sinh[e + f*x]^2]])/(2*f) + (b^(3/2)*ArcTa
nh[(Sqrt[b]*Sinh[e + f*x])/Sqrt[a + b*Sinh[e + f*x]^2]])/f + ((a - b)*Sech[e + f*x]*Sqrt[a + b*Sinh[e + f*x]^2
]*Tanh[e + f*x])/(2*f)

Rule 209

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*ArcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rule 212

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))*ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 223

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Subst[Int[1/(1 - b*x^2), x], x, x/Sqrt[a + b*x^2]] /; FreeQ[{a,
b}, x] &&  !GtQ[a, 0]

Rule 385

Int[((a_) + (b_.)*(x_)^(n_))^(p_)/((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Subst[Int[1/(c - (b*c - a*d)*x^n), x]
, x, x/(a + b*x^n)^(1/n)] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && EqQ[n*p + 1, 0] && IntegerQ[n]

Rule 424

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[(a*d - c*b)*x*(a + b*x^n)^(
p + 1)*((c + d*x^n)^(q - 1)/(a*b*n*(p + 1))), x] - Dist[1/(a*b*n*(p + 1)), Int[(a + b*x^n)^(p + 1)*(c + d*x^n)
^(q - 2)*Simp[c*(a*d - c*b*(n*(p + 1) + 1)) + d*(a*d*(n*(q - 1) + 1) - b*c*(n*(p + q) + 1))*x^n, x], x], x] /;
 FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && LtQ[p, -1] && GtQ[q, 1] && IntBinomialQ[a, b, c, d, n, p, q
, x]

Rule 537

Int[((e_) + (f_.)*(x_)^(n_))/(((a_) + (b_.)*(x_)^(n_))*Sqrt[(c_) + (d_.)*(x_)^(n_)]), x_Symbol] :> Dist[f/b, I
nt[1/Sqrt[c + d*x^n], x], x] + Dist[(b*e - a*f)/b, Int[1/((a + b*x^n)*Sqrt[c + d*x^n]), x], x] /; FreeQ[{a, b,
 c, d, e, f, n}, x]

Rule 3269

Int[cos[(e_.) + (f_.)*(x_)]^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2)^(p_.), x_Symbol] :> With[{ff = Free
Factors[Sin[e + f*x], x]}, Dist[ff/f, Subst[Int[(1 - ff^2*x^2)^((m - 1)/2)*(a + b*ff^2*x^2)^p, x], x, Sin[e +
f*x]/ff], x]] /; FreeQ[{a, b, e, f, p}, x] && IntegerQ[(m - 1)/2]

Rubi steps

\begin {align*} \int \text {sech}^3(e+f x) \left (a+b \sinh ^2(e+f x)\right )^{3/2} \, dx &=\frac {\text {Subst}\left (\int \frac {\left (a+b x^2\right )^{3/2}}{\left (1+x^2\right )^2} \, dx,x,\sinh (e+f x)\right )}{f}\\ &=\frac {(a-b) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{2 f}+\frac {\text {Subst}\left (\int \frac {a (a+b)+2 b^2 x^2}{\left (1+x^2\right ) \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{2 f}\\ &=\frac {(a-b) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{2 f}+\frac {b^2 \text {Subst}\left (\int \frac {1}{\sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{f}+\frac {\left (-2 b^2+a (a+b)\right ) \text {Subst}\left (\int \frac {1}{\left (1+x^2\right ) \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{2 f}\\ &=\frac {(a-b) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{2 f}+\frac {b^2 \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {\sinh (e+f x)}{\sqrt {a+b \sinh ^2(e+f x)}}\right )}{f}+\frac {\left (-2 b^2+a (a+b)\right ) \text {Subst}\left (\int \frac {1}{1-(-a+b) x^2} \, dx,x,\frac {\sinh (e+f x)}{\sqrt {a+b \sinh ^2(e+f x)}}\right )}{2 f}\\ &=\frac {\sqrt {a-b} (a+2 b) \tan ^{-1}\left (\frac {\sqrt {a-b} \sinh (e+f x)}{\sqrt {a+b \sinh ^2(e+f x)}}\right )}{2 f}+\frac {b^{3/2} \tanh ^{-1}\left (\frac {\sqrt {b} \sinh (e+f x)}{\sqrt {a+b \sinh ^2(e+f x)}}\right )}{f}+\frac {(a-b) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{2 f}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.78, size = 150, normalized size = 1.13 \begin {gather*} \frac {2 \sqrt {a-b} (a+2 b) \text {ArcTan}\left (\frac {\sqrt {2 a-2 b} \sinh (e+f x)}{\sqrt {2 a-b+b \cosh (2 (e+f x))}}\right )+4 b^{3/2} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {b} \sinh (e+f x)}{\sqrt {2 a-b+b \cosh (2 (e+f x))}}\right )+(a-b) \sqrt {4 a-2 b+2 b \cosh (2 (e+f x))} \text {sech}(e+f x) \tanh (e+f x)}{4 f} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sech[e + f*x]^3*(a + b*Sinh[e + f*x]^2)^(3/2),x]

[Out]

(2*Sqrt[a - b]*(a + 2*b)*ArcTan[(Sqrt[2*a - 2*b]*Sinh[e + f*x])/Sqrt[2*a - b + b*Cosh[2*(e + f*x)]]] + 4*b^(3/
2)*ArcTanh[(Sqrt[2]*Sqrt[b]*Sinh[e + f*x])/Sqrt[2*a - b + b*Cosh[2*(e + f*x)]]] + (a - b)*Sqrt[4*a - 2*b + 2*b
*Cosh[2*(e + f*x)]]*Sech[e + f*x]*Tanh[e + f*x])/(4*f)

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 3.
time = 1.14, size = 63, normalized size = 0.47

method result size
default \(\frac {\mathit {`\,int/indef0`\,}\left (\frac {b^{2} \left (\sinh ^{4}\left (f x +e \right )\right )+2 a b \left (\sinh ^{2}\left (f x +e \right )\right )+a^{2}}{\cosh \left (f x +e \right )^{4} \sqrt {a +b \left (\sinh ^{2}\left (f x +e \right )\right )}}, \sinh \left (f x +e \right )\right )}{f}\) \(63\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sech(f*x+e)^3*(a+b*sinh(f*x+e)^2)^(3/2),x,method=_RETURNVERBOSE)

[Out]

`int/indef0`((b^2*sinh(f*x+e)^4+2*a*b*sinh(f*x+e)^2+a^2)/cosh(f*x+e)^4/(a+b*sinh(f*x+e)^2)^(1/2),sinh(f*x+e))/
f

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sech(f*x+e)^3*(a+b*sinh(f*x+e)^2)^(3/2),x, algorithm="maxima")

[Out]

integrate((b*sinh(f*x + e)^2 + a)^(3/2)*sech(f*x + e)^3, x)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1325 vs. \(2 (115) = 230\).
time = 0.79, size = 7350, normalized size = 55.26 \begin {gather*} \text {too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sech(f*x+e)^3*(a+b*sinh(f*x+e)^2)^(3/2),x, algorithm="fricas")

[Out]

[1/4*((b*cosh(f*x + e)^4 + 4*b*cosh(f*x + e)*sinh(f*x + e)^3 + b*sinh(f*x + e)^4 + 2*b*cosh(f*x + e)^2 + 2*(3*
b*cosh(f*x + e)^2 + b)*sinh(f*x + e)^2 + 4*(b*cosh(f*x + e)^3 + b*cosh(f*x + e))*sinh(f*x + e) + b)*sqrt(b)*lo
g(-((a^2*b - 2*a*b^2 + b^3)*cosh(f*x + e)^8 + 8*(a^2*b - 2*a*b^2 + b^3)*cosh(f*x + e)*sinh(f*x + e)^7 + (a^2*b
 - 2*a*b^2 + b^3)*sinh(f*x + e)^8 + 2*(a^3 - 4*a^2*b + 5*a*b^2 - 2*b^3)*cosh(f*x + e)^6 + 2*(a^3 - 4*a^2*b + 5
*a*b^2 - 2*b^3 + 14*(a^2*b - 2*a*b^2 + b^3)*cosh(f*x + e)^2)*sinh(f*x + e)^6 + 4*(14*(a^2*b - 2*a*b^2 + b^3)*c
osh(f*x + e)^3 + 3*(a^3 - 4*a^2*b + 5*a*b^2 - 2*b^3)*cosh(f*x + e))*sinh(f*x + e)^5 + (9*a^2*b - 14*a*b^2 + 6*
b^3)*cosh(f*x + e)^4 + (70*(a^2*b - 2*a*b^2 + b^3)*cosh(f*x + e)^4 + 9*a^2*b - 14*a*b^2 + 6*b^3 + 30*(a^3 - 4*
a^2*b + 5*a*b^2 - 2*b^3)*cosh(f*x + e)^2)*sinh(f*x + e)^4 + 4*(14*(a^2*b - 2*a*b^2 + b^3)*cosh(f*x + e)^5 + 10
*(a^3 - 4*a^2*b + 5*a*b^2 - 2*b^3)*cosh(f*x + e)^3 + (9*a^2*b - 14*a*b^2 + 6*b^3)*cosh(f*x + e))*sinh(f*x + e)
^3 + b^3 + 2*(3*a*b^2 - 2*b^3)*cosh(f*x + e)^2 + 2*(14*(a^2*b - 2*a*b^2 + b^3)*cosh(f*x + e)^6 + 15*(a^3 - 4*a
^2*b + 5*a*b^2 - 2*b^3)*cosh(f*x + e)^4 + 3*a*b^2 - 2*b^3 + 3*(9*a^2*b - 14*a*b^2 + 6*b^3)*cosh(f*x + e)^2)*si
nh(f*x + e)^2 + sqrt(2)*((a^2 - 2*a*b + b^2)*cosh(f*x + e)^6 + 6*(a^2 - 2*a*b + b^2)*cosh(f*x + e)*sinh(f*x +
e)^5 + (a^2 - 2*a*b + b^2)*sinh(f*x + e)^6 - 3*(a^2 - 2*a*b + b^2)*cosh(f*x + e)^4 + 3*(5*(a^2 - 2*a*b + b^2)*
cosh(f*x + e)^2 - a^2 + 2*a*b - b^2)*sinh(f*x + e)^4 + 4*(5*(a^2 - 2*a*b + b^2)*cosh(f*x + e)^3 - 3*(a^2 - 2*a
*b + b^2)*cosh(f*x + e))*sinh(f*x + e)^3 - (4*a*b - 3*b^2)*cosh(f*x + e)^2 + (15*(a^2 - 2*a*b + b^2)*cosh(f*x
+ e)^4 - 18*(a^2 - 2*a*b + b^2)*cosh(f*x + e)^2 - 4*a*b + 3*b^2)*sinh(f*x + e)^2 - b^2 + 2*(3*(a^2 - 2*a*b + b
^2)*cosh(f*x + e)^5 - 6*(a^2 - 2*a*b + b^2)*cosh(f*x + e)^3 - (4*a*b - 3*b^2)*cosh(f*x + e))*sinh(f*x + e))*sq
rt(b)*sqrt((b*cosh(f*x + e)^2 + b*sinh(f*x + e)^2 + 2*a - b)/(cosh(f*x + e)^2 - 2*cosh(f*x + e)*sinh(f*x + e)
+ sinh(f*x + e)^2)) + 4*(2*(a^2*b - 2*a*b^2 + b^3)*cosh(f*x + e)^7 + 3*(a^3 - 4*a^2*b + 5*a*b^2 - 2*b^3)*cosh(
f*x + e)^5 + (9*a^2*b - 14*a*b^2 + 6*b^3)*cosh(f*x + e)^3 + (3*a*b^2 - 2*b^3)*cosh(f*x + e))*sinh(f*x + e))/(c
osh(f*x + e)^6 + 6*cosh(f*x + e)^5*sinh(f*x + e) + 15*cosh(f*x + e)^4*sinh(f*x + e)^2 + 20*cosh(f*x + e)^3*sin
h(f*x + e)^3 + 15*cosh(f*x + e)^2*sinh(f*x + e)^4 + 6*cosh(f*x + e)*sinh(f*x + e)^5 + sinh(f*x + e)^6)) + ((a
+ 2*b)*cosh(f*x + e)^4 + 4*(a + 2*b)*cosh(f*x + e)*sinh(f*x + e)^3 + (a + 2*b)*sinh(f*x + e)^4 + 2*(a + 2*b)*c
osh(f*x + e)^2 + 2*(3*(a + 2*b)*cosh(f*x + e)^2 + a + 2*b)*sinh(f*x + e)^2 + 4*((a + 2*b)*cosh(f*x + e)^3 + (a
 + 2*b)*cosh(f*x + e))*sinh(f*x + e) + a + 2*b)*sqrt(-a + b)*log(((a - 2*b)*cosh(f*x + e)^4 + 4*(a - 2*b)*cosh
(f*x + e)*sinh(f*x + e)^3 + (a - 2*b)*sinh(f*x + e)^4 - 2*(3*a - 2*b)*cosh(f*x + e)^2 + 2*(3*(a - 2*b)*cosh(f*
x + e)^2 - 3*a + 2*b)*sinh(f*x + e)^2 + 2*sqrt(2)*(cosh(f*x + e)^2 + 2*cosh(f*x + e)*sinh(f*x + e) + sinh(f*x
+ e)^2 - 1)*sqrt(-a + b)*sqrt((b*cosh(f*x + e)^2 + b*sinh(f*x + e)^2 + 2*a - b)/(cosh(f*x + e)^2 - 2*cosh(f*x
+ e)*sinh(f*x + e) + sinh(f*x + e)^2)) + 4*((a - 2*b)*cosh(f*x + e)^3 - (3*a - 2*b)*cosh(f*x + e))*sinh(f*x +
e) + a - 2*b)/(cosh(f*x + e)^4 + 4*cosh(f*x + e)*sinh(f*x + e)^3 + sinh(f*x + e)^4 + 2*(3*cosh(f*x + e)^2 + 1)
*sinh(f*x + e)^2 + 2*cosh(f*x + e)^2 + 4*(cosh(f*x + e)^3 + cosh(f*x + e))*sinh(f*x + e) + 1)) + (b*cosh(f*x +
 e)^4 + 4*b*cosh(f*x + e)*sinh(f*x + e)^3 + b*sinh(f*x + e)^4 + 2*b*cosh(f*x + e)^2 + 2*(3*b*cosh(f*x + e)^2 +
 b)*sinh(f*x + e)^2 + 4*(b*cosh(f*x + e)^3 + b*cosh(f*x + e))*sinh(f*x + e) + b)*sqrt(b)*log((b*cosh(f*x + e)^
4 + 4*b*cosh(f*x + e)*sinh(f*x + e)^3 + b*sinh(f*x + e)^4 + 2*a*cosh(f*x + e)^2 + 2*(3*b*cosh(f*x + e)^2 + a)*
sinh(f*x + e)^2 + sqrt(2)*(cosh(f*x + e)^2 + 2*cosh(f*x + e)*sinh(f*x + e) + sinh(f*x + e)^2 + 1)*sqrt(b)*sqrt
((b*cosh(f*x + e)^2 + b*sinh(f*x + e)^2 + 2*a - b)/(cosh(f*x + e)^2 - 2*cosh(f*x + e)*sinh(f*x + e) + sinh(f*x
 + e)^2)) + 4*(b*cosh(f*x + e)^3 + a*cosh(f*x + e))*sinh(f*x + e) + b)/(cosh(f*x + e)^2 + 2*cosh(f*x + e)*sinh
(f*x + e) + sinh(f*x + e)^2)) + 2*sqrt(2)*((a - b)*cosh(f*x + e)^2 + 2*(a - b)*cosh(f*x + e)*sinh(f*x + e) + (
a - b)*sinh(f*x + e)^2 - a + b)*sqrt((b*cosh(f*x + e)^2 + b*sinh(f*x + e)^2 + 2*a - b)/(cosh(f*x + e)^2 - 2*co
sh(f*x + e)*sinh(f*x + e) + sinh(f*x + e)^2)))/(f*cosh(f*x + e)^4 + 4*f*cosh(f*x + e)*sinh(f*x + e)^3 + f*sinh
(f*x + e)^4 + 2*f*cosh(f*x + e)^2 + 2*(3*f*cosh(f*x + e)^2 + f)*sinh(f*x + e)^2 + 4*(f*cosh(f*x + e)^3 + f*cos
h(f*x + e))*sinh(f*x + e) + f), 1/4*(2*((a + 2*b)*cosh(f*x + e)^4 + 4*(a + 2*b)*cosh(f*x + e)*sinh(f*x + e)^3
+ (a + 2*b)*sinh(f*x + e)^4 + 2*(a + 2*b)*cosh(f*x + e)^2 + 2*(3*(a + 2*b)*cosh(f*x + e)^2 + a + 2*b)*sinh(f*x
 + e)^2 + 4*((a + 2*b)*cosh(f*x + e)^3 + (a + 2*b)*cosh(f*x + e))*sinh(f*x + e) + a + 2*b)*sqrt(a - b)*arctan(
sqrt(2)*(cosh(f*x + e)^2 + 2*cosh(f*x + e)*sinh(f*x + e) + sinh(f*x + e)^2 - 1)*sqrt(a - b)*sqrt((b*cosh(f*x +
 e)^2 + b*sinh(f*x + e)^2 + 2*a - b)/(cosh(f*x ...

________________________________________________________________________________________

Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sech(f*x+e)**3*(a+b*sinh(f*x+e)**2)**(3/2),x)

[Out]

Exception raised: SystemError >> excessive stack use: stack is 5007 deep

________________________________________________________________________________________

Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sech(f*x+e)^3*(a+b*sinh(f*x+e)^2)^(3/2),x, algorithm="giac")

[Out]

Exception raised: TypeError >> An error occurred running a Giac command:INPUT:sage2:=int(sage0,sageVARx):;OUTP
UT:Error: Bad Argument Type

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (b\,{\mathrm {sinh}\left (e+f\,x\right )}^2+a\right )}^{3/2}}{{\mathrm {cosh}\left (e+f\,x\right )}^3} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*sinh(e + f*x)^2)^(3/2)/cosh(e + f*x)^3,x)

[Out]

int((a + b*sinh(e + f*x)^2)^(3/2)/cosh(e + f*x)^3, x)

________________________________________________________________________________________